package com.wanmait.baohan.service.Impl;


import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.TravelPeopleMapper;
import com.wanmait.baohan.pojo.TravelPeople;
import com.wanmait.baohan.service.TravelPeopleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @author 打豆豆
 * @version 1.0
 * @date 2020/12/6 13:43
 * @description:
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class TravelPeopleServiceImpl implements TravelPeopleService {
    @Resource
    private TravelPeopleMapper travelPeopleMapper;

    @Override
    public void insertTravelPeoplebyTravelApplication(List<TravelPeople> travelPeoples) {
         travelPeopleMapper.insertList(travelPeoples);
    }

    @Override
    public List<TravelPeople> findAllAllpicationStaffs(Integer id) {
        return travelPeopleMapper.selectStaffsByApplicationId(id);
    }

    @Override
    public void insert(TravelPeople object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(TravelPeople object) {

    }

    @Override
    public TravelPeople findById(Integer id) {
        return null;
    }

    @Override
    public List<TravelPeople> findAll() {
        return null;
    }

    @Override
    public List<TravelPeople> findAll(TravelPeople object) {
        return null;
    }

    @Override
    public PageInfo<TravelPeople> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<TravelPeople> findPage() {
        return null;
    }

    @Override
    public PageInfo<TravelPeople> findPage(int pageNum, TravelPeople object) {
        return null;
    }

    @Override
    public PageInfo<TravelPeople> findPage(TravelPeople object) {
        return null;
    }
}
